package com.ruoyi.official.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 财务用款管理对象 money
 * 
 * @author ruoyi
 * @date 2023-03-07
 */

public class Money extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String depName;

    /** 员工名称 */
    @Excel(name = "员工名称")
    private String empName;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getDepName() {
        return depName;
    }

    public void setDepName(String depName) {
        this.depName = depName;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    /** 编号 */
    private Integer spendMoneyId;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String entryName;

    /** 申请部门 */
    @Excel(name = "申请部门")
    private Integer depId;

    /** 申请金额 */
    @Excel(name = "申请金额")
    private BigDecimal applicationAmount;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applicationDate;

    /** 负责人 */
    @Excel(name = "负责人")
    private Integer empId;

    /** 拨款人 */
    @Excel(name = "拨款人")
    private String appropriator;

    /** 拨款日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "拨款日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date appropriationDate;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private Integer state;

    /** 版本号 */
    @Excel(name = "版本号")
    private Integer version;

    public void setSpendMoneyId(Integer spendMoneyId) 
    {
        this.spendMoneyId = spendMoneyId;
    }

    public Integer getSpendMoneyId() 
    {
        return spendMoneyId;
    }
    public void setEntryName(String entryName) 
    {
        this.entryName = entryName;
    }

    public String getEntryName() 
    {
        return entryName;
    }

    public Integer getDepId() {
        return depId;
    }

    public void setDepId(Integer depId) {
        this.depId = depId;
    }

    public void setApplicationAmount(BigDecimal applicationAmount)
    {
        this.applicationAmount = applicationAmount;
    }

    public BigDecimal getApplicationAmount() 
    {
        return applicationAmount;
    }
    public void setApplicationDate(Date applicationDate) 
    {
        this.applicationDate = applicationDate;
    }

    public Date getApplicationDate() 
    {
        return applicationDate;
    }

    public Integer getEmpId() {
        return empId;
    }

    public void setEmpId(Integer empId) {
        this.empId = empId;
    }

    public void setAppropriator(String appropriator)
    {
        this.appropriator = appropriator;
    }

    public String getAppropriator() 
    {
        return appropriator;
    }
    public void setAppropriationDate(Date appropriationDate) 
    {
        this.appropriationDate = appropriationDate;
    }

    public Date getAppropriationDate() {
        return appropriationDate;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getVersion()
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("spendMoneyId", getSpendMoneyId())
            .append("entryName", getEntryName())
            .append("depId", getDepId())
            .append("applicationAmount", getApplicationAmount())
            .append("applicationDate", getApplicationDate())
            .append("empId", getEmpId())
            .append("appropriator", getAppropriator())
            .append("appropriationDate", getAppropriationDate())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("state", getState())
            .append("version", getVersion())
            .toString();
    }
}
